package cn.tedu.io;

import java.io.*;

public class IOUitls {
    public static void copyOf(String frompath,String topath) throws IOException {
        InputStream in = new BufferedInputStream(new FileInputStream(frompath));
        OutputStream ou = new BufferedOutputStream(new FileOutputStream(topath,true));
        int b = 0;
        while ((b=in.read())!=-1){
            ou.write(b);
        }
        in.close();
        ou.close();

    }
}
